package cn.devices.service;

import cn.devices.dto.AndroidUserDto;
import cn.devices.dto.DmUserDto;
import cn.devices.entity.TbUser;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 员工表 服务类
 * </p>
 *
 * @author 秋水浮萍
 * @since 2021-02-07
 */
public interface TbUserService {
    int tbUserAdd(TbUser user);

    int tbUserUpdate(TbUser user);

    int tbUserDeleteFalse(String userId);

    int tbUserDeleteTrue(String userId);

    int countTel(String telephone,String userId);

    TbUser userGetById(String userId);

    PageInfo<TbUser> tbUserList(int pageIndex, int pageSize,String depName);

    PageInfo<TbUser> dpUserList(int pageIndex, int pageSize,String depCode);

    List<DmUserDto> dmUserDtoList();

    List<AndroidUserDto> androidUserDtos();
}
